uni-button {
    line-height: initial;
}
@mixin buttonStyle($color) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160rpx;
    height: 76rpx;
    font-size: 28rpx;
    padding: 0 30rpx;
    background: $color;
    border-radius: 38rpx;
    border: 1px solid $color;
    color: #fff;
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    &:before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        border: inherit;
        border-radius: inherit;
        transform: translate(-50%, -50%);
        opacity: 0;
        content: " ";
        background-color: #000;
        border-color: #000;
    }

    &:after {
        border: none;
    }

    &.button-hover:before {
        opacity: 0.15;
    }
}

uni-button[disabled="true"],
button[aria-disabled="true"],
button[disabled]:not([type]) {
    cursor: not-allowed;
    background: #dadada;
    border: #dadada;
    // opacity: 0.5;
    color: #fff !important;
}
uni-button[loading]:before {
    opacity: 1 !important;
    position: static;
    margin-right: 5px;
    border: none;
}
@mixin buttonPlainStyle($color) {
    color: $color;
    background: $white;
}
.btn-blue {
    @include buttonStyle(#0782fe);
}
.btn-info {
    @include buttonStyle(#999999);
}
.btn-primary {
    @include buttonStyle($blue-1);
}
.btn-warning {
    @include buttonStyle($orange);
}
.btn-yellow {
    @include buttonStyle($yellow2);
}
.btn-purple {
    @include buttonStyle($purple);
}
.btn-danger {
    @include buttonStyle($red);
}
.btn-red {
    @include buttonStyle($red2);
}
.btn-pink {
    @include buttonStyle($pink);
}
.btn-pink2 {
    @include buttonStyle($pink2);
}
.btn-reset {
    @include buttonStyle(#fff);
    color: #333;
}
.btn-cancel {
    @include buttonStyle(#d7d7d7);
    color: #fff;
}
.btn-success {
    @include buttonStyle($green);
    color: #fff;
}
.btn-black {
    @include buttonStyle(rgba(#000, 0.3));
    color: #999;
    border: none;
}
.btn-purple {
    @include buttonStyle($purple);
}
.plain.btn-info {
    @include buttonPlainStyle(#3e3e3e);
}
.plain.btn-primary {
    @include buttonPlainStyle($blue-1);
}
.plain.btn-warning {
    @include buttonPlainStyle($orange);
}
.plain.btn-yellow {
    @include buttonPlainStyle($yellow2);
}
.plain.btn-danger {
    @include buttonPlainStyle($red);
}
.plain.btn-cancel {
    @include buttonPlainStyle(#d7d7d7);
}
.plain.btn-success {
    @include buttonPlainStyle($green);
}
.btn-square {
    border-radius: 8rpx;
}
.btn-large {
    height: 100rpx;
    font-size: 36rpx;
    min-width: 260rpx;
}
.btn-little {
    height: 66rpx;
    font-size: 24rpx;
    padding: 0 20rpx;
}
.btn-small {
    height: 60rpx;
    font-size: 24rpx;
    padding: 0 20rpx;
}
.btn-mini {
    height: 50rpx;
    font-size: 24rpx;
    padding: 0 20rpx;
    min-width: 110rpx;
}
.btn-status {
    height: 40rpx;
    border-radius: 20rpx;
    font-size: 24rpx;
    padding: 0 12rpx;
    min-width: 106rpx;
    &:before {
        display: none;
    }
    &.button-hover:before {
        opacity: 1;
    }
    &:active {
        opacity: 1 !important;
    }
}
.btn-text {
    line-height: initial;
    height: auto;
    border: none;
    padding: 0;
    background: transparent;
    font-size: 24rpx;
    min-width: auto;
    overflow: auto;
    border-radius: 0;
    &::before {
        border: none;
        background: transparent;
    }
    &::after {
        border: none;
    }
    &:active {
        opacity: 0.8;
    }
}

.btn-br10 {
    border-radius: 10rpx;
}
button + button {
    margin-left: 20rpx;
}
.btn-icon {
    font-size: 24rpx;
    margin-right: 8rpx;
}
.block {
    display: block;
}
.flex {
    display: flex;
}
